package cn.ipenta.auth.entity;import javax.persistence.Entity;import javax.persistence.Id;import java.io.Serializable;/** * @author ipenta * @ClassName: TokenModel * @Description: Token 的 Model 类，可以增加字段提高安全性，例如时间戳、url 签名 * @date 2017-09-26 下午3:52 */@Entitypublic class TokenModel implements Serializable {	// 用户 id	@Id	private long userId;	// 随机生成的 uuid	private String token;	public TokenModel(){}	public TokenModel (long userId, String token) {		this.userId = userId;		this.token = token;	}	public long getUserId () {		return userId;	}	public void setUserId (long userId) {		this.userId = userId;	}	public String getToken () {		return token;	}	public void setToken (String token) {		this.token = token;	}}